while read id
do
    x=$(echo $id |cut -d" " -f 1 )
    y=$(echo $id |cut -d" " -f 2 ) 
    echo $x 
    echo $y 

    command
 
done <$1